/* // 

use super::common_import::*;

#[pyfunction]
fn send_packet(packet: &[u8], iface: &str) -> PyResult<()> {
    Python::with_gil(|py| {
        let scapy = py.import("scapy")?;
        let send = scapy.get("_send")?;
        send.call1(py, (packet, iface)).map(|_| ())
    })
}

#[pymodule]
fn rust_lib(_py: Python, m: &PyModule) -> PyResult<()> {
    m.add_function(wrap_pyfunction!(send_packet, m)?)?;
    
    Ok(())
}
/* //
```python
import rust_lib

packet = b'your packet here'
iface = 'eth0'

rust_lib.send_packet(packet, iface)
```
// */

// */